/**
 * @author  guocailee
 */
import types from '../types.js'
const state = {
  email: null,
  mobile: null,
  question: false,
  questionList: []
}

// mutations
const mutations = {
  [types.security.UPDATE_MOBILE](state, mobile) {
    state.mobile = mobile
  },
  [types.security.UPDATE_EMAIL](state, email) {
    state.email = email
  },
  [types.security.UPDATE_QUESTION](state, question) {
    state.question = question
  },
  [types.security.UPDATE_QUESTION_LIST](state, questionList) {
    state.questionList = questionList
  }
}

export default {
  state,
  mutations
}
